package com.maruping.disk.spring.util;

import org.springframework.util.DigestUtils;

public final class MdSUtil {
    private  MdSUtil(){}

    private static final String passwdKey = "abc123456abc";

    private static String encode(String rawPassword){
        return DigestUtils.md5DigestAsHex((rawPassword + passwdKey).getBytes());

    }

    public static void main(String[] args) {
        System.out.printf("password:" + encode("123456"));
    }

}
